package main

import (
	"github.com/gin-gonic/gin"
	"lottery/application/controller"
	"lottery/application/sdkInit"
	"net/http"
)

func setUpRouter() *gin.Engine  {
	router := gin.Default()
	router.GET("/student/all", controller.GetAllStudent)
	router.StaticFS("/web/", http.Dir("./public/"))
	return router
}

func main()  {
	sdkInit.Init()
	router := setUpRouter()
	err := router.Run()
	if err != nil {
		panic(err)
	}
}
